package com.cxk.hr.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cxk.hr.dao.RoleMapper;
import com.cxk.hr.pojo.Role;
import com.cxk.hr.service.RoleService;

/**
 * @Title: 角色实现类
 * @author: 84157
 */
@Service("roleService")
public class RoleServiceImpl implements RoleService {
	@Resource
	private RoleMapper roleMapper;

	@Override
	public List<Role> selectRolesByUserCode(String userCode) {
		List<Role> roles = roleMapper.selectRolesByUserCode(userCode);
		return roles;
	}
}
